import * as func from '../function'
import getters from './getters'
import actions from './actions'
import mutations from './mutations'

// 数据读取本地存储 没有就是从空的开始 event:[],count:0 count每次添加事件会加1赋值给id
const state = func.local.get() || {event: [], count: 0}

export default {
  state,
  getters,
  actions,
  mutations
}